from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import (
    KnowledgeNodeViewSet,
    LearningPathViewSet,
    StudyRecordViewSet,
    ReviewTaskViewSet
)

router = DefaultRouter()
router.register('nodes', KnowledgeNodeViewSet, basename='node')
router.register('paths', LearningPathViewSet, basename='path')
router.register('records', StudyRecordViewSet, basename='record')
router.register('reviews', ReviewTaskViewSet, basename='review')

urlpatterns = [
    path('', include(router.urls)),
]
